﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataModel
{
    /// <summary>
    /// 报警位
    /// </summary>
    public class Alarm
    {
        /// <summary>
        /// 1：紧急报警，触动报警开关后触发  收到应答后清零
        /// </summary>
        public int SOS { get; set; }


        /// <summary>
        /// 1：超速报警  标志维持至报警条件解除
        /// </summary>
        public int OverSpeed { get; set; }

        /// <summary>
        /// 1：疲劳驾驶  标志维持至报警条件解除
        /// </summary>
        public int FatigueDriving { get; set; }

        /// <summary>
        /// 1：预警  收到应答后清零
        /// </summary>
        public int EarlyWarning { get; set; }

        /// <summary>
        /// 1：GNSS模块发生故障  标志维持至报警条件解除
        /// </summary>
        public int GNSSError { get; set; }

        /// <summary>
        /// 1：GNSS天线未接或被剪断  标志维持至报警条件解除
        /// </summary>
        public int GNSSOff { get; set; }

        /// <summary>
        /// 1：GNSS天线短路  标志维持至报警条件解除
        /// </summary>
        public int GNSSShort { get; set; }

        /// <summary>
        /// 1：终端主电源欠压  标志维持至报警条件解除
        /// </summary>
        public int Undervoltage { get; set; }

        /// <summary>
        /// 1：终端主电源掉电  标志维持至报警条件解除
        /// </summary>
        public int PowerOff { get; set; }

        /// <summary>
        /// 1：终端LCD或显示器故障  标志维持至报警条件解除
        /// </summary>
        public int LCDError { get; set; }

        /// <summary>
        /// 1：TTS模块故障  标志维持至报警条件解除
        /// </summary>
        public int TTSError { get; set; }

        /// <summary>
        /// 1：摄像头故障  标志维持至报警条件解除
        /// </summary>
        public int CameraError { get; set; }

        /// <summary>
        /// 1：当天累计驾驶超时  标志维持至报警条件解除
        /// </summary>
        public int DirverOverTime { get; set; }

        /// <summary>
        /// 1：超时停车  标志维持至报警条件解除
        /// </summary>
        public int StopOverTime { get; set; }

        /// <summary>
        /// 1：进出区域  收到应答后清零
        /// </summary>
        public int AreaInOut { get; set; }

        /// <summary>
        /// 1：进出路线  收到应答后清零
        /// </summary>
        public int RoadInOut { get; set; }

        /// <summary>
        /// 1：路段行驶时间不足/过长  收到应答后清零
        /// </summary>
        public int RoadOverTime { get; set; }

        /// <summary>
        /// 1：路线偏移报警  标志维持至报警条件解除
        /// </summary>
        public int RoadOffSet { get; set; }

        /// <summary>
        /// 1：车辆VSS故障  标志维持至报警条件解除
        /// </summary>
        public int VSSError { get; set; }

        /// <summary>
        /// 1：车辆油量异常  标志维持至报警条件解除
        /// </summary>
        public int OilError { get; set; }

        /// <summary>
        /// 1：车辆被盗（通过车辆防盗器）  标志维持至报警条件解除
        /// </summary>
        public int Stolen { get; set; }

        /// <summary>
        /// 1：车辆非法点火  收到应答后清零
        /// </summary>
        public int IllegalOn { get; set; }

        /// <summary>
        /// 1：车辆非法位移  收到应答后清零
        /// </summary>
        public int IllegalMove { get; set; }

        /// <summary>
        /// 1：碰撞侧翻报警  标志维持至报警条件解除
        /// </summary>
        public int Collide { get; set; }

        /// <summary>
        /// 1：SD卡异常  标志维持至异常条件解除
        /// </summary>
        public int SDError { get; set; }

        /// <summary>
        /// 1: 油量异常
        /// </summary>
        public int OilAlarm { get; set; }

    }
}
